package org.fuyd.model;

import java.math.BigDecimal;

/**
 * 订单类，存储用户的订单信息，对应于数据库Order表。
 * 
 * @author 永德
 *
 */
public class Order {
  // 订单状态宏定义
  public static final String STATUS_DOING = "正在处理……";
  public static final String STATUS_FINISHED = "已完成";
  public static final String STATUS_SENDING = "正在发货……";

  private String address; // 订单对应的地址
  private Commodity[] commodities; // 订单包含的商品
  private BigDecimal countPrice; // 订单总价
  private int customerId; // 订单对应的客户
  private int id;
  private String receiver; // 收件人
  private String status; // 订单状态

  public String getAddress() {
    return address;
  }

  public Commodity[] getCommodities() {
    return commodities;
  }

  public BigDecimal getCountPrice() {
    return countPrice;
  }

  public int getCustomerId() {
    return customerId;
  }

  public int getId() {
    return id;
  }

  public String getReceiver() {
    return receiver;
  }

  public String getStatus() {
    return status;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public void setCommodities(Commodity[] commodities) {
    this.commodities = commodities;
  }

  public void setCountPrice(BigDecimal countPrice) {
    this.countPrice = countPrice;
  }

  public void setCustomerId(int customerId) {
    this.customerId = customerId;
  }

  public void setId(int id) {
    this.id = id;
  }

  public void setReceiver(String receiver) {
    this.receiver = receiver;
  }

  public void setStatus(String status) {
    this.status = status;
  }

}
